package com.woniu.idearbac.Service.impl;


import com.woniu.idearbac.Service.DeptService;
import com.woniu.idearbac.dto.DeptDto;
import com.woniu.idearbac.entity.SysDept;
import com.woniu.idearbac.mapper.SysDeptMapper;
import com.woniu.idearbac.vo.DeptVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author King
 * @date 2022/11/25
 * @project boot_rbac
 */
@Service
public class DeptServiceImpl implements DeptService {
    @Resource
    private com.woniu.idearbac.mapper.SysDeptMapper SysDeptMapper;


    @Override
    public List<SysDept> selAllHome() {
        return SysDeptMapper.selAllHome();
    }

    @Override
    public SysDept selCount(Long id) {
        return SysDeptMapper.selCount(id);
    }

    @Override
    public List<DeptVo> selAll(DeptDto DeptDto) {
        return SysDeptMapper.selAll(DeptDto);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return SysDeptMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(SysDept record) {
        return SysDeptMapper.insertSelective(record);
    }

    @Override
    public SysDept selectByPrimaryKey(Long id) {
        return SysDeptMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SysDept record) {
        return SysDeptMapper.updateByPrimaryKeySelective(record);
    }
}
